package com.spaty.forms;

public class Triangle {
	
	int a;
	int b;
	int c;
	
	public Triangle(){}
	public Triangle(int a, int b, int c){
		this.a = a;
		this.b = b;
		this.c = c;
	}
	
	public float getPerim() {
		return this.a + this.b + this.c;
	}
	
	public double getSurf() {
		float sp = (this.a + this.b + this.c)/2;
		return Math.sqrt(sp*(sp - this.a)*(sp - this.b)*(sp - this.c));
	}

}
